package com.moons.demo.aicamera.facerecognition.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Transient;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class UserFace {
    @Id(autoincrement = true)
    private Long id;

    private long pictureId;

    private String name;
    private byte[] feature;
    private int age;
    /**
     * 0--female
     * 1--male
     * 2--unknown
     */
    private int gerder;

    public float getSimilarity() {
        return similarity;
    }

    public void setSimilarity(float similarity) {
        this.similarity = similarity;
    }

    @Transient
    private float similarity;

    @Generated(hash = 919694900)
    public UserFace(Long id, long pictureId, String name, byte[] feature, int age,
            int gerder) {
        this.id = id;
        this.pictureId = pictureId;
        this.name = name;
        this.feature = feature;
        this.age = age;
        this.gerder = gerder;
    }

    @Generated(hash = 388001001)
    public UserFace() {
    }


    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public byte[] getFeature() {
        return this.feature;
    }

    public void setFeature(byte[] feature) {
        this.feature = feature;
    }

    public int getAge() {
        return this.age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getGerder() {
        return this.gerder;
    }

    public void setGerder(int gerder) {
        this.gerder = gerder;
    }

    public long getPictureId() {
        return this.pictureId;
    }

    public void setPictureId(long pictureId) {
        this.pictureId = pictureId;
    }
}
